package wzc.design_pattern.creation.singleton;

/**
 * @Author 王振川
 * @Date 2025/7/20
 * @Description 懒汉式创建单例
 */

public class LazyInitialization {
    private static LazyInitialization instance;
    
    private LazyInitialization() {
        
    }
    
    public static LazyInitialization getInstance() {
        if (instance == null) {
            instance = new LazyInitialization();
        }
        return instance;
    }
}
